<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>获取数字中最小值</title>
</head>
<body>
    <script>
        var a= 26;
        var b= 17;
        var c= 10;
        var d= 20;
        if(a>b){
            a=b;
        }
        if(a>c){
            a=c;
        }
        if(a>d){
            a=d;
        }
        document.write("四个数字中最小值为："+a)
    </script>
</body>
</html>